public class Visitor {
    public String name;
    public int age;
    public void judge(){
               if (18<age&&age<60){
                   System.out.println(name+"的年龄为："+age+"门票20元"); }

           else{ System.out.println(name+"的年龄为："+age+"门票免费");
        }
}
public void judegs(){
    System.out.println("退出程序");
}
}
